package org.hdl.anima.message;

import java.io.IOException;

import org.hdl.anima.common.io.InputArchive;
import org.hdl.anima.common.io.OutputArchive;

/**
 * 
 * @author qiuhd
 * @since  2014年8月15日
 */
public class CreateLocalSessionResp extends ResponseAdapter {

	private String rsid ;	//服务器id
	
	public CreateLocalSessionResp() {
		
	}
	
	public CreateLocalSessionResp(String rsid) {
		this.rsid = rsid;
	}
	
	public static CreateLocalSessionResp create(String rsid) {
		return new CreateLocalSessionResp(rsid);
	}
	
	@Override
	public void doSerialize(OutputArchive out) throws IOException {
		out.writeString(rsid);
	}

	@Override
	public void doDeserialize(InputArchive in) throws IOException {
		this.rsid = in.readString();
	}

	@Override
	public void doDisplay(MDisplayer displayer) {
		
	}

	@Override
	public void displaySimple(MDisplayer displayer) {
	}

	public String getRsid() {
		return rsid;
	}

	public void setRsid(String rsid) {
		this.rsid = rsid;
	}
}

